package com.ms.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ms.commons.domain.SysPermission;
import com.ms.commons.domain.SysRole;
import com.ms.commons.domain.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author:SmartV
 * @date:2021/12/2 12:32
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    List<SysPermission> getPermissionByUserId(@Param("userId") Long userId);

    List<SysRole> findRoleByUserId(@Param("userId") Long userId);
}
